package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.PMiaosha;

import java.util.List;

@DBMapper
public interface PMiaoshaMapper {
    int deleteByPrimaryKey(Integer msId);

    int insert(PMiaosha record);

    int insertSelective(PMiaosha record);

    PMiaosha selectByPrimaryKey(Integer msId);

    int updateByPrimaryKeySelective(PMiaosha record);

    int updateByPrimaryKey(PMiaosha record);

    List<PMiaosha> findPMiaoShaByCondition(PMiaosha pMiaosha);

    PMiaosha getNearestOne();
    
    void updatePurchasedNum(Integer msId);
}